package cn.qingyun.gis.modules.takeaway.controller;

import cn.qingyun.gis.common.Result;
import cn.qingyun.gis.modules.takeaway.service.ITakeawayDataHandleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/app/takeaway/handle")
@Api(value = "数据处理", tags = {"数据处理"})
public class TakeawayDataHandleController {
    @Resource
    private ITakeawayDataHandleService iTakeawayDataHandleService;
    @GetMapping("/matchGrid")
    @ApiOperation("匹配外卖地址-地市、区县、网格、微网格")
    public Result<?> matchGrid() {
        iTakeawayDataHandleService.matchGrid();
        return Result.okData("正在将快递数据进行业务区划匹配~~");
    }
}
